// /order/list
//订单接口模块

//引入工具函数
import request from '@/utils/request'

export const orderList=params=>{
    return request({
        method:'get',
        url:'/order/list',
        params
    })
}

//订单详情
export const orderDetail=params=>{
    return request({
        method:'get',
        url:'/order/detail',
        params
    })
}

//修改订单详情
export const orderEdit=data=>{
    return request({
        method:'post',
        url:'/order/edit',
        data
    })
}

//首页
export const orderTotaldata=()=>{
    return request({
        method:'get',
        url:'/order/totaldata',
    })
}

//订单统计
export const orderOrdertotal=params=>{
    return request({
        method:'get',
        url:'/order/ordertotal',
        params
    })
}